<div class="categories form">
    <?php echo $this->Form->create('Category', array('class' => 'form-horizontal', 'inputDefaults' => array('label' => false))); ?>
    <fieldset>
        <h2>Thêm Mục Mới</h2>
        <hr />
        <?php
        $options = array();
        $options[0] = '--Chọn Mục Cha--';
        foreach ($parentCategories as $category)
        {
            $options[$category['Category']['id']] = $category['Category']['name_category'];
        }
        ?>
        <div class="form-group">
            <label for="parent" class="control-label col-md-2">Mục Cha</label>
            <div class="col-md-4">
                <?php echo $this->Form->input('parent_id', array('options' => $options, 'class' => 'form-control')); ?>
            </div>
        </div>
        <div class="form-group">
            <label for="parent" class="control-label col-md-2">Tên Mục Mới <span class="text-danger">*</span></label>
            <div class="col-md-4">
                <?php
                echo $this->Form->input('name_category', array('class' => 'form-control', 'placeholder' => 'Tên mục mới...'));
                ?>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-2 col-md-offset-2">
                <?php echo $this->Form->Submit(__('Submit'), array('class' => 'btn btn-info btn-sm form-control')); ?>                
            </div>
        </div>
    </fieldset>
    <?php echo $this->Form->end(); ?>
</div>